import Layout from '@/layout'

// 员工模块(抽离出来是为了好维护, 也会带来一个问题,变成一级路由)
export default {
  path: '/employees',
  component: Layout,
  children: [
    // 员工默认页
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    // 点击查看员工
    {
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true
    },
    // 员工打印页打印的
    {
      path: 'print/:id',
      name: 'detail',
      component: () => import('@/views/employees/components/print.vue'),
      hidden: true
    }
  ]
}
